#ifndef __SCNS_CRC_H__
#define __SCNS_CRC_H__

#include "ScnsConfig.h"

#if defined(SCNS_CRC_ENABLE)&&SCNS_CRC_ENABLE==1

#include "ScnsYing.h"

//h_replace_start
extern uint8 scnsCrc8OneWire(uint8 ans,const uint8*buf,uint32 i,uint32 n,uint32 l);
extern uint8 scnsCrc8Saej1850(uint8 ans,const uint8*buf,uint32 i,uint32 n,uint32 l);
extern uint16 scnsCrc16Modbus(uint16 ans,const uint8*buf,uint32 i,uint32 n,uint32 l);
//h_replace_end

extern void scnsCrcTest(void);
#endif
#endif
